package com.itheima.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 王同学
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVO {
    private String id;
    private String phone;
    private Integer sex;
    private String city;
    private String nickname;
    private String birthday;
    private String code;
    private String token;
    private boolean firstLogin;  //这个是用来确定 是否为新用户的
    @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
    private LocalDateTime updateTime;
    private int isdelete;
}
